﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace MyPublish.Connection.Syndication
{
    public class BlogData
    {
        public string FeedURL { get; set; }

        public string PostURL { get; set; }

        public string SelfFeedURL { get; set; }

        public string ID { get; set; }

        public string BlogURL { get; set; }

        public string Title { get; set; }

        public string UserName { get; set; }

        public string Url
        {
            get
            {
                if (!string.IsNullOrEmpty(PostURL))
                {
                    return PostURL;
                }
                return FeedURL;
            }
        }
    }
}
